package com.example.demo.controller;

import com.example.demo.annotion.MyAnnotation;
import com.example.demo.enums.DataEnum;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by xy on 2017/8/28.
 */
@Controller
public class IndexController {


    @MyAnnotation(value = "xy",name = "xy",xy={"xy1","xy2"},week = DataEnum.Monday)
    @RequestMapping(value = "")
    @ResponseBody
    public String index(){
        return "index";
    }
}
